﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="user.aspx.cs" Inherits="EDP.Application.Web.Select.user" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <script type="text/javascript">
        document.onkeydown = function (e) {
            if (!e) e = window.event;
            if ((e.keyCode || e.which) == 13) {
                F.f_disable('panel_grid_select_user_ctl00_btn_query');
                __doPostBack('panel$grid_select_user$ctl00$btn_query', '');
            }
        }
    </script>
    <style type="text/css">
        .x-column-header {
            text-align: center;
        }
    </style>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager" AutoSizePanelID="panel" runat="server" />
        <f:HiddenField ID="hide_orgFullCode" runat="server" />
        <f:Panel ID="panel" runat="server" ShowBorder="false" Margin="0" Layout="Region">
            <Toolbars>
                <f:Toolbar runat="server" Position="Bottom" ToolbarAlign="Right">
                    <Items>
                        <f:Button ID="btn_determine" runat="server" Text=" 确 定 " Icon="Accept" Margin="0 10 0 0" OnClick="btn_determine_Click" />
                        <f:Button ID="btn_close" runat="server" Text=" 关 闭 " Icon="Cross" Margin="0 10 0 0" EnablePostBack="false" EnablePermission="false" />
                    </Items>
                </f:Toolbar>
            </Toolbars>
            <Items>
                <f:Tree ID="tree_org" runat="server" ShowHeader="false" Margin="0" Width="260" RegionPosition="Left" OnNodeCommand="tree_org_NodeCommand" />
                <f:Grid ID="grid_select_user" runat="server" ShowHeader="false" DataKeyNames="ID,Name" Margin="0" RegionPosition="Center"
                    OnPageIndexChange="grid_List_PageIndexChange" OnSort="grid_List_Sort" SortField="PositionGradeLevels" SortDirection="DESC">
                    <Toolbars>
                        <f:Toolbar runat="server" ToolbarAlign="Right" QueryToolbar="true">
                            <Items>
                                <f:TextBox ID="tb2" runat="server" EmptyText="部门名称/部门编号" QueryName="DepartmentKeyword" Margin="0" Width="150" />
                                <f:TextBox ID="tb1" runat="server" EmptyText="账号/姓名" QueryName="AccountNameKeywrod" Margin="0 0 0 10" Width="100" />
                                <f:TextBox ID="tb3" runat="server" EmptyText="职位" QueryName="PositionTitle" Margin="0 0 0 10" Width="100" />
                                <f:Button ID="btn_query" runat="server" Text=" 查 询 " Icon="SystemSearch" Margin="0 0 0 10" OnClick="QueryClick" />
                                <f:ToolbarFill runat="server" />
                                <f:Button ID="btn_more" runat="server" EnablePermission="false" Text="更多..." EnablePostBack="false">
                                    <Menu runat="server" Margin="0">
                                        <f:MenuButton ID="btn_cache" runat="server" Margin="0" Text="重置缓存" OnClick="btn_cache_Click" />
                                    </Menu>
                                </f:Button>
                            </Items>
                        </f:Toolbar>

                    </Toolbars>
                    <Columns>
                        <f:BoundField DataField="Account" Width="80" HeaderText="账号" />
                        <f:BoundField DataField="Name" DataToolTipField="Name" Width="80" HeaderText="姓名" />
                        <f:BoundField DataField="GenderName" SortField="GenderId" Width="65" HeaderText="性别" />
                        <f:BoundField DataField="OrganizationName" DataToolTipField="OrganizationName" ExpandUnusedSpace="true" HeaderText="机构" />
                        <f:BoundField DataField="DepartmentNumbers" DataToolTipField="DepartmentNumbers" Width="120" HeaderText="部门编号" />
                        <f:BoundField DataField="DepartmentName" DataToolTipField="DepartmentName" ExpandUnusedSpace="true" HeaderText="部门" />
                        <f:BoundField DataField="PositionTitle" DataToolTipField="PositionTitle" Width="120" HeaderText="职位" />
                        <f:BoundField DataField="PositionGradeName" SortField="PositionGradeLevels" Width="65" HeaderText="职级" />
                    </Columns>
                </f:Grid>
            </Items>
        </f:Panel>
    </form>
</body>
</html>
